package org.jground.rxapps.dev;

//import org.apache.log4j.PropertyConfigurator;
import java.util.logging.Logger;

import org.jground.rx.RXSystem;
import org.jground.rx.gen.JavaClassGenerator;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;

public class JavaClassGenerationTests {

	private static Logger logger = Logger
			.getLogger(JavaClassGenerationTests.class.getName());

	public static void main(String[] args) throws Exception {
		BeanFactory factory = new XmlBeanFactory(new FileSystemResource(
				"src/config/rxAC-gen.xml"));
		RXSystem rxSystem = (RXSystem) factory.getBean("rxSystem");
		JavaClassGenerator classGenerator = (JavaClassGenerator) factory
				.getBean("codeGenerator");
		logger.info("rxSystem:" + rxSystem);
		logger.info("classGenerator:" + classGenerator);
		System.out.println("*** DONE ***");
	}

}
